home *** CD-ROM | disk | FTP | other *** search
Wrap
scenario = GetProperties() scenario.ScenarioType = 1 scenario.Title = "sc_Train_09_00" scenario.Map = "Beotorum.dat" scenario.Description = "sc_Train_09_01" scenario.Picture = "Train 09.dds" scenario.iSortOrder = 9 scenario.vShowMessageBoxes[STDDT_GUERILLA] = false scenario.vShowMessageBoxes[STDDT_INITIAL_DISCLOSE] = false scenario.vShowMessageBoxes[STDDT_ORDINARY_DICLOSE] = false scenario.vShowMessageBoxes[STDDT_COMBAT_PHASE] = false scenario.vShowMessageBoxes[STDDT_SHOW_REVENUE] = false scenario.vShowMessageBoxes[STDDT_AUTOFINISH_GUERILLA] = false scenario.vShowMessageBoxes[STDDT_AUTOFINISH_COMBAT] = false scenario.vShowMessageBoxes[STDDT_AUTOFINISH_REVENUE] = false scenario.vShowMessageBoxes[STDDT_AUTOFINISH_DISCLOSE] = false scenario.vShowMessageBoxes[STDDT_YOU_CAPTURED_CAPITAL] = false scenario.vShowMessageBoxes[STDDT_YOU_CLEARED_TERRITORY] = false scenario.vShowMessageBoxes[STDDT_YOU_CAPTURED_COUNTRY] = false scenario.vShowMessageBoxes[STDDT_YOU_GOT_INDEMNITY] = false scenario.vShowMessageBoxes[STDDT_ENEMY_CLEARED_TERRITORY] = false scenario.vShowMessageBoxes[STDDT_ENEMY_INVADED] = false scenario.vShowMessageBoxes[STDDT_ENEMY_CAPTURED_COUNTRY] = false scenario.vShowMessageBoxes[STDDT_ENEMY_DISCLOSE] = false scenario.vShowMessageBoxes[STDDT_DICLOSE_COUNTRY] = false scenario.vShowMessageBoxes[STDDT_INVADE_COUNTRY] = false Player(PT_PLAYER, RACE_HUMANS) Player(PT_AI, RACE_ALIENS) SetInitialCamera(-0.599832, -0.000000, 0.800126, 0.000000, -0.671434, 0.543885, -0.503355, 0.000000,-0.435176, -0.839160, -0.326239, 0.000000,1690.444580, 900.000000, -427.242706, 1.000000) function InitialMOB() StartMOB(2) ShowXBallon(51, -1, MBS_CENTER, 300, 300, "sc_Train_09_02") ShowXBallon(51, -1, MBS_CENTER, 300, 300, "sc_Train_09_03") ShowXBallon(51, -1, MBS_CENTER, 300, 300, "sc_Train_09_04") ShowXBallon(51, -1, MBS_CENTER, 300, 350, "sc_Train_09_05") FlyCamera(-0.504705, 0.000000, -0.863292, 0.000000, 0.844555, 0.207213, -0.493751, 0.000000,0.178885, -0.978296, -0.104581, 0.000000,747.690430, 713.391296, -891.475586, 1.000000) ShowBallon(51, -1, MBS_CENTER, 16, 26,"sc_Train_09_07") -- FlyCamera(-0.897869, 0.000000, -0.440264, 0.000000, 0.235631, 0.844723, -0.480543, 0.000000,0.371901, -0.535204, -0.758450, 0.000000,214.324829, 294.297791, -101.542206, 1.000000) -- FlyCamera(0.999762, 0.000000, 0.021798, 0.000000, -0.008578, 0.919321, 0.393414, 0.000000,-0.020039, -0.393508, 0.919103, 0.000000,1738.976929, 250.637390, -1992.766602, 1.000000) FlyCamera(0.951247, 0.000000, -0.308430, 0.000000, 0.243187, 0.615075, 0.750028, 0.000000, 0.189708, -0.788468, 0.585089, 0.000000, 770.159241, 900.000000, -2076.143311, 1.000000) SelectCountry(1) SelectCountry(13) SelectCountry(8) SelectCountry(5) SelectCountry(12) ShowBallon(51, -1, MBS_CENTER, 27, 31, "sc_Train_09_08") pause(1.0) --[[ ShowBallon(51, -1, MBS_LEFT, 27, 45, "sc_Train_09_09") ShowBallon(51, -1, MBS_CENTER, 27, 27, "sc_Train_09_10") FlyCamera(0.713980, 0.000000, -0.700166, 0.000000, 0.638820, 0.409336, 0.651424, 0.000000,0.286603, -0.912384, 0.292258, 0.000000,1040.540771, 418.158508, -898.900452, 1.000000) ShowBallon(51, -1, MBS_RIGHT, 17, 21, "sc_Train_09_11") FlyCamera(-0.868718, 0.000000, -0.495307, 0.000000, 0.192242, 0.921606, -0.337173, 0.000000,0.456478, -0.388127, -0.800616, 0.000000,118.109573, 319.708801, -829.571777, 1.000000) ShowBallon(51, -1, MBS_RIGHT, 5, 31, "sc_Train_09_12") FlyCamera(0.994432, 0.000000, -0.105379, 0.000000, 0.087681, 0.554691, 0.827424, 0.000000,0.058453, -0.832057, 0.551602, 0.000000,526.062195, 301.459259, -1999.719482, 1.000000) ShowBallon(51, -1, MBS_LEFT, 8, 48, "sc_Train_09_13") ]]-- UnselectCountry(1) UnselectCountry(8) UnselectCountry(5) UnselectCountry(12) UnselectCountry(13) FlyCamera(-0.897869, 0.000000, -0.440264, 0.000000, 0.235631, 0.844723, -0.480543, 0.000000,0.371901, -0.535204, -0.758450, 0.000000,214.324829, 294.297791, -101.542206, 1.000000) ShowBallon(51, -1, MBS_CENTER, 7, 15, "sc_Train_09_14") -- FlyCamera(0.907236, 0.000000, -0.420622, 0.000000, 0.371852, 0.467390, 0.802043, 0.000000,0.196595, -0.884051, 0.424033, 0.000000,666.358276, 1249.911499, -2037.883789, 1.000000) FlyCamera(0.951247, 0.000000, -0.308430, 0.000000, 0.243187, 0.615075, 0.750028, 0.000000, 0.189708, -0.788468, 0.585089, 0.000000, 770.159241, 900.000000, -2076.143311, 1.000000) ShowBallon(51, -1, MBS_CENTER, 14, 32, "sc_Train_09_15") ShowBallon(51, -1, MBS_CENTER, 14, 32, "sc_Train_09_16") -- FlyCamera(0.793712, 0.000000, -0.608293, 0.000000, 0.301578, 0.868450, 0.393504, 0.000000,0.528272, -0.495777, 0.689300, 0.000000,230.585983, 727.087402, -2105.634521, 1.000000) ShowBallon(51, -1, MBS_CENTER, 14, 32, "sc_Train_09_17") ShowBallon(51, -1, MBS_CENTER, 14, 32, "sc_Train_09_18") FlyCamera(0.796311, 0.000000, 0.604888, 0.000000, -0.132997, 0.975529, 0.175085, 0.000000,-0.590086, -0.219870, 0.776824, 0.000000,1552.917358, 188.635468, -1627.253174, 1.000000) ShowBallon(51, -1, MBS_CENTER, -28, -58, "sc_Train_09_19") ShowBallon(51, -1, MBS_CENTER, -28, -58, "sc_Train_09_19a") Money(4, MONEY_TOTAL_REVENUE, 0) Money(4, MONEY_GUERRILLA, 0) Money(3, MONEY_TOTAL_REVENUE, 0) Money(3, MONEY_GUERRILLA, 0) FlyCamera(0.571643, 0.000000, -0.820502, 0.000000, 0.392861, 0.877921, 0.273706, 0.000000,0.720336, -0.478805, 0.501858, 0.000000,1259.611450, 302.010620, -1084.309082, 1.000000) pause(1.0) Disclose(4) SetupUnit(100, TANKA, 22, 22) SetupUnit(101, TANKA, 23, 23) SetupUnit(102, TANKA, 24, 24) SetupUnit(103, TANKA, 25, 25) ShowXBallon(51, -1, MBS_CENTER, 470, 420, "sc_Train_09_88") ShowXBallon(51, -1, MBS_CENTER, 470, 420, "sc_Train_09_88a") FlyCamera(0.996300, -0.000000, -0.085941, 0.000000, 0.029469, 0.939373, 0.341629, 0.000000, 0.080731, -0.342898, 0.935897, 0.000000, 1483.650024, 176.626480, -1094.538086, 1.000000) ShowXBallon(51, -1, MBS_CENTER, 700, 380, "sc_Train_09_88b") --[[ ShowBallon(51, -1, MBS_CENTER, -28, -58, "sc_Train_09_21") FlyCamera(0.652398, 0.000000, 0.757876, 0.000000, -0.735204, 0.242770, 0.632881, 0.000000,-0.183990, -0.970084, 0.158383, 0.000000,1201.648682, 576.097168, -872.054810, 1.000000) SelectCountry(5) ShowBallon(51, -1, MBS_LEFT, 17, 21, "sc_Train_09_22") FlyCamera(0.652398, 0.000000, 0.757876, 0.000000, -0.735204, 0.242770, 0.632881, 0.000000,-0.183990, -0.970084, 0.158383, 0.000000,1260.957642, 912.783447, -839.588318, 1.000000) ShowObject(ARROW, 1, 16711680, 100, 70, 13, 17, 16, 20) ShowObject(ARROW, 2, 16711680, 100, 70, 21, 25, 18, 22) ShowObject(ARROW, 3, 16711680, 100, 70, 16, 32, 17, 25) ShowObject(ARROW, 4, 16711680, 100, 70, 12, 26, 16, 24) ShowBallon(51, -1, MBS_LEFT, 17, 21, "sc_Train_09_23") UnselectCountry(5) HideObject(1) HideObject(2) HideObject(3) HideObject(4) FlyCamera(0.999832, 0.000000, -0.018337, 0.000000, 0.014131, 0.637284, 0.770499, 0.000000,0.011686, -0.770629, 0.637177, 0.000000,1709.645142, 487.531067, -1927.638672, 1.000000) SelectCountry(1) ShowXBallon(51, -1, MBS_LEFT, 497, 485, "sc_Train_09_24") UnselectCountry(1) SelectCountry(2) ShowObject(ARROW, 5, 16711680, 44, 100, 27, 37, 27, 45) ShowBallon(51, -1, MBS_RIGHT, 25, 35, "sc_Train_09_25") UnselectCountry(2) HideObject(5) SelectCountry(13) ShowBallon(51, -1, MBS_RIGHT, 4, 10, "sc_Train_09_26") UnselectCountry(13) FlyCamera(0.033306, 0.000000, -0.999445, 0.000000, 0.398675, 0.916996, 0.013286, 0.000000,0.916487, -0.398896, 0.030542, 0.000000,-121.377716, 192.583755, -481.674896, 1.000000) ]]-- FlyCamera(0.429173, 0.000000, -0.903222, 0.000000, 0.782020, 0.500371, 0.371583, 0.000000,0.451946, -0.865811, 0.214746, 0.000000,-95.706718, 845.157104, -1696.780518, 1.000000) ShowBallon(51, -1, MBS_CENTER, 6, 36, "sc_Train_09_20") ShowBallon(51, -1, MBS_CENTER, 10, 38, "sc_Train_09_27") SelectCountry(8) SelectCountry(12) -- ShowBallon(51, -1, MBS_CENTER, 10, 38,"sc_Train_09_28") ShowObject(ARROW, 11, 65280, 100, 70, 2, 38, 4, 44) ShowObject(ARROW, 12, 65280, 100, 70, 6, 36, 7, 41) ShowObject(ARROW, 13, 65280, 100, 70, 7, 47, 6, 42) UnselectCountry(8) UnselectCountry(12) ShowXBallon(51, -1, MBS_CENTER, 300, 300,"sc_Train_09_29") --[[ FlyCamera(0.999863, 0.000000, 0.016526, 0.000000, -0.015949, 0.261819, 0.964985, 0.000000,-0.004327, -0.965117, 0.261784, 0.000000,612.458801, 552.994812, -1802.229004, 1.000000) SelectCountry(12) ShowXBallon(51, -1, MBS_CENTER, 300, 300, "sc_Train_09_38") UnselectCountry(12) ShowXBallon(51, -1, MBS_CENTER, 300, 300, "sc_Train_09_39") FlyCamera(0.912586, 0.000000, 0.408886, 0.000000, -0.346649, 0.530331, 0.773681, 0.000000,-0.216845, -0.847791, 0.483973, 0.000000,577.632019, 373.225952, -1842.635620, 1.000000) SelectCountry(10) SetupUnit( 4098, TANK, 5, 49 ) SetupUnit( 4099, LBOT, 6, 48 ) SetupUnit( 4100, LBOT, 7, 47 ) SetupUnit( 4101, LBOT, 8, 46 ) SetupUnit( 4102, LBOT, 9, 45 ) SetupUnit( 4103, MORTAR, 7, 49 ) SelectUnit( 4098 ) SelectUnit( 4099 ) SelectUnit( 4100 ) SelectUnit( 4101 ) SelectUnit( 4102 ) SelectUnit( 4103 ) ShowXBallon(51, -1, MBS_CENTER, 300, 300, "sc_Train_09_40") UnselectCountry(10) UnselectUnit( 4098 ) UnselectUnit( 4099 ) UnselectUnit( 4100 ) UnselectUnit( 4101 ) UnselectUnit( 4102 ) UnselectUnit( 4103 ) SetHP( 4098, 0 ) SetHP( 4099, 0 ) SetHP( 4100, 0 ) SetHP( 4101, 0 ) SetHP( 4102, 0 ) SetHP( 4103, 0 ) RemoveDead() FlyCamera(0.992062, 0.000000, -0.125749, 0.000000, 0.108827, 0.501024, 0.858563, 0.000000,0.063003, -0.865433, 0.497047, 0.000000,656.543945, 373.225952, -1759.138794, 1.000000) SelectCountry(11) SetupUnit( 4098, LBOT, 9, 45 ) SetupUnit( 4099, LBOT, 10, 46 ) SetupUnit( 4100, LBOT, 11, 45 ) SetupUnit( 4101, LBOT, 12, 46 ) SetupUnit( 4102, MORTAR, 9, 47 ) SetupUnit( 4103, MORTAR, 11, 47 ) SelectUnit( 4098 ) SelectUnit( 4099 ) SelectUnit( 4100 ) SelectUnit( 4101 ) SelectUnit( 4102 ) SelectUnit( 4103 ) ShowXBallon(51, -1, MBS_CENTER, 300, 300, "sc_Train_09_41") UnselectCountry(10) UnselectUnit( 4098 ) UnselectUnit( 4099 ) UnselectUnit( 4100 ) UnselectUnit( 4101 ) UnselectUnit( 4102 ) UnselectUnit( 4103 ) UnselectCountry(11) SetHP( 4098, 0 ) SetHP( 4099, 0 ) SetHP( 4100, 0 ) SetHP( 4101, 0 ) SetHP( 4102, 0 ) SetHP( 4103, 0 ) RemoveDead() FlyCamera(0.966604, 0.000000, 0.256276, 0.000000, -0.244308, 0.302034, 0.921460, 0.000000,-0.077404, -0.953297, 0.291947, 0.000000,656.543945, 500.048859, -1759.138794, 1.000000) ShowXBallon(51, -1, MBS_CENTER, 300, 300, "sc_Train_09_42") SetupUnit( 4098, LBOT, 5, 49 ) SetupUnit( 4099, LBOT, 6, 48 ) SetupUnit( 4100, LBOT, 7, 47 ) SetupUnit( 4101, LBOT, 8, 46 ) SetupUnit( 4102, LBOT, 9, 45 ) SetupUnit( 4103, LBOT, 10, 46 ) SetupUnit( 4104, LBOT, 11, 45 ) SetupUnit( 4105, LBOT, 12, 46 ) SelectUnit( 4098 ) SelectUnit( 4099 ) SelectUnit( 4100 ) SelectUnit( 4101 ) SelectUnit( 4102 ) SelectUnit( 4103 ) SelectUnit( 4104 ) SelectUnit( 4105 ) ShowXBallon(51, -1, MBS_CENTER, 300, 300, "sc_Train_09_43") UnselectUnit( 4098 ) UnselectUnit( 4099 ) UnselectUnit( 4100 ) UnselectUnit( 4101 ) UnselectUnit( 4102 ) UnselectUnit( 4103 ) UnselectUnit( 4104 ) UnselectUnit( 4105 ) SetHP( 4098, 0 ) SetHP( 4099, 0 ) SetHP( 4100, 0 ) SetHP( 4101, 0 ) SetHP( 4102, 0 ) SetHP( 4103, 0 ) SetHP( 4104, 0 ) SetHP( 4105, 0 ) RemoveDead() ShowXBallon(51, -1, MBS_CENTER, 300, 300, "sc_Train_09_44") ]]-- FlyCamera(-0.887829, 0.000000, -0.460173, 0.000000, 0.445711, 0.248730, -0.859927, 0.000000,0.114459, -0.968573, -0.220830, 0.000000,251.212296, 500.048859, -1248.777466, 1.000000) SelectCountry(8) ShowXBallon(51, -1, MBS_CENTER, 300, 300, "sc_Train_09_45") FlyCamera(-0.127555, 0.000000, -0.991831, 0.000000, 0.663324, 0.743454, -0.085307, 0.000000,0.737381, -0.668787, -0.094831, 0.000000,-184.107559, 429.774506, -1190.856445, 1.000000) ShowXBallon(51, -1, MBS_LEFT, 386, 261, "sc_Train_09_46") UnselectCountry(8) FlyCamera(-0.877531, 0.000000, -0.479520, 0.000000, 0.398986, 0.554697, -0.730151, 0.000000,0.265989, -0.832052, -0.486764, 0.000000,183.128799, 429.774506, -1368.909546, 1.000000) SelectCountry(12) ShowXBallon(51, -1, MBS_CENTER, 300, 300, "sc_Train_09_47") UnselectCountry(12) FlyCamera(-0.981344, -0.000000, -0.192263, 0.000000, 0.172285, 0.443865, -0.879376, 0.000000,0.085339, -0.896094, -0.435584, 0.000000,272.435577, 464.907349, -947.140991, 1.000000) FinishMOB() end old_prompt = "" function OnUpdate() if GetCountryControl( 10 ) ~= COLOR_GREEN then if GetTurnNumber( COLOR_GREEN ) == 0 then if GetCountryControl( 8 ) == COLOR_NONE then ShowPrompting("sc_Train_09_48") elseif GetMoney(8, MONEY_DISCLOSURE) > 0 then ShowPrompting("sc_Train_09_49") end elseif GetTurnNumber( COLOR_GREEN ) == 1 then if GetGamePhase() == PHASE_COMBAT then local bDone = true for i = 4097, 4120 do if IsAlive( i ) then local p = GetPos( i ) if GetMP( i ) > 0 and GetCountry( p.x, p.y ) ~= 10 then bDone = false end end end if not bDone then ShowPrompting("sc_Train_09_50") end end else if GetGamePhase() == PHASE_COMBAT then if not AllUnitsMovedAndFiredIfCould() and GetAliveUnitsAmount( COLOR_RED ) > 0 then if GetTurnNumber( COLOR_GREEN ) < 4 then ShowPrompting("sc_Train_09_51") else ShowPrompting("sc_Train_09_52") end end elseif GetGamePhase() == PHASE_DISCLOSE then if GetCountryControl( 12 ) == COLOR_NONE then ShowPrompting("sc_Train_09_53") elseif GetMoney(12, MONEY_DISCLOSURE) > 0 then ShowPrompting("sc_Train_09_54") end end end end if GetGamePhase() == PHASE_DEPLOYMENT then if GetMoney(8, MONEY_BANK) > 0 then ShowPrompting("sc_Train_09_55") elseif GetMoney(12, MONEY_BANK) > 0 then ShowPrompting("sc_Train_09_56") elseif GetMoney(10, MONEY_BANK) > 0 then ShowPrompting("sc_Train_09_57") end end if not HasPrompting() then ShowPrompting("sc_Train_finish_phase") end end function OnHexClicked(x, y, clicked_unit, selected_unit, command) if GetCountryControl( 10 ) == COLOR_GREEN then return end if command == CMD_MOVE then if GetCountry( x, y ) == 11 then IncorrectAction("sc_Train_09_59") end elseif command == CMD_SETUP then if GetGamePhase() == PHASE_DISCLOSE then if GetCountry( x, y ) == 12 then if GetType( selected_unit ) ~= HBOT or GetUnitTurnsTo( selected_unit, 6, 46, true, true ) > 1 then IncorrectAction("sc_Train_09_60") end elseif ( x == 5 and y == 25 or x == 4 and y == 26 or x == 3 and y == 27 or x == 3 and y == 29 or x == 3 and y == 31 or x == 2 and y == 32 or x == 1 and y == 33 or x == 0 and y == 34 or x == 0 and y == 36 or x == 0 and y == 38 ) then IncorrectAction("sc_Train_09_62") elseif GetCountry( x, y ) == 8 then --[[ if not ( x == 7 and y == 35 or x == 6 and y == 36 or x == 5 and y == 37 or x == 6 and y == 34 or x == 5 and y == 35 or x == 3 and y == 37 or x == 2 and y == 38 or x == 3 and y == 35 or x == 2 and y == 36 or x == 1 and y == 37 ) then IncorrectAction("sc_Train_09_61") else ]]-- if GetType( selected_unit ) ~= LBOT and GetType( selected_unit ) ~= TANK then IncorrectAction("sc_Train_09_62") elseif GetAliveUnitsAmount( COLOR_GREEN, TANK ) > 3 then IncorrectAction("sc_Train_09_62") end end elseif GetGamePhase() == PHASE_DEPLOYMENT then if GetType( selected_unit ) ~= LBOT and GetType( selected_unit ) ~= TANK and GetType( selected_unit ) ~= MORTAR then IncorrectAction("sc_Train_09_63") elseif GetCountry( x, y ) == 12 then if x + y ~= 54 then IncorrectAction("sc_Train_09_64") end --[[ elseif GetCountry( x, y ) == 8 then if not ( x == 7 and y == 35 or x == 6 and y == 36 or x == 5 and y == 37 or x == 3 and y == 37 or x == 2 and y == 38 ) then IncorrectAction("sc_Train_09_65") end ]]-- end end end end function OnCountryDisclosed(country, color) if country == 8 then StartMOB(3) FlyCamera(-0.926483, -0.000000, -0.376335, 0.000000, 0.373785, 0.116215, -0.920205, 0.000000,0.043736, -0.993224, -0.107671, 0.000000,258.146912, 465.739471, -1299.113770, 1.000000) ShowXBallon(51, -1, MBS_CENTER, 300, 300, "sc_Train_09_66") ShowXBallon(51, -1, MBS_CENTER, 300, 300, "sc_Train_09_67") ShowXBallon(51, -1, MBS_RIGHT, 741, 538, "sc_Train_09_68") FinishMOB() elseif country == 12 then if GetMoney(10, MONEY_DISCLOSURE) > 0 then IncorrectAction("sc_Train_09_69") end elseif country == 10 then StartMOB(1) ShowXBallon(51, -1, MBS_CENTER, 300, 300, "sc_Train_09_70") pause(2) FlyCamera(-0.913700, -0.000000, -0.406389, 0.000000, 0.335338, 0.564893, -0.753953, 0.000000,0.229566, -0.825164, -0.516143, 0.000000,255.001892, 268.153931, -1400.836304, 1.000000) ShowXBallon(51, -1, MBS_CENTER, 300, 300, "sc_Train_09_71") ShowXBallon(51, -1, MBS_CENTER, 300, 300, "sc_Train_09_71a") FinishMOB() elseif color == COLOR_GREEN then IncorrectAction("sc_Train_09_72") end end local bVictory = false function OnBeginPhase(phase) if phase == PHASE_DISCLOSE then if GetTurnNumber( COLOR_GREEN ) == 1 then StartMOB(1) FlyCamera(0.852671, 0.000000, 0.522449, 0.000000, -0.407386, 0.626076, 0.664880, 0.000000,-0.327092, -0.779762, 0.533836, 0.000000,720.563171, 347.054565, -1911.019531, 1.000000) ShowXBallon(51, -1, MBS_CENTER, 750, 400, "sc_Train_09_73") FlyCamera(-0.987599, 0.000000, -0.156998, 0.000000, 0.129385, 0.566411, -0.813903, 0.000000,0.088925, -0.824123, -0.559386, 0.000000,325.222870, 557.853699, -947.999634, 1.000000) ShowBallon(51, -1, MBS_CENTER, 5, 39, "sc_Train_09_74") FinishMOB() elseif GetMoney( 10, MONEY_DISCLOSURE ) == 0 and GetMoney( 12, MONEY_DISCLOSURE ) > 0 then StartMOB(1) FlyCamera(0.861137, 0.000000, 0.508373, 0.000000, -0.411795, 0.586396, 0.697542, 0.000000,-0.298108, -0.810024, 0.504968, 0.000000,575.600647, 310.757050, -1816.288696, 1.000000) ShowXBallon(51, -1, MBS_CENTER, 300, 300, "sc_Train_09_75") ShowXBallon(51, -1, MBS_CENTER, 300, 300, "sc_Train_09_76") FinishMOB() end elseif phase == PHASE_COMBAT then if GetTurnNumber( COLOR_GREEN ) == 2 then StartMOB(1) FlyCamera(-0.938056, 0.000000, -0.346484, 0.000000, 0.336247, 0.241283, -0.910341, 0.000000,0.083601, -0.970455, -0.226337, 0.000000,254.494278, 538.065552, -1295.048828, 1.000000) ShowObject(ARROW, 20, 65280, 100, 70, 6, 36, 7, 41) ShowObject(ARROW, 21, 65280, 100, 70, 2, 38, 4, 42) ShowBallon(51, -1, MBS_CENTER, 4, 32, "sc_Train_09_77") HideObject(20) HideObject(21) FinishMOB() elseif GetTurnNumber( COLOR_GREEN ) == 3 then StartMOB(1) FlyCamera(-0.719280, -0.000000, -0.694721, 0.000000, 0.667948, 0.274933, -0.691561, 0.000000,0.191002, -0.961463, -0.197754, 0.000000,92.870834, 675.793396, -1375.873657, 1.000000) ShowObject(ARROW, 25, 65280, 100, 70, 5, 37, 6, 40) ShowObject(ARROW, 26, 65280, 100, 70, 7, 47, 6, 42) ShowBallon(51, -1, MBS_CENTER, 1, 47, "sc_Train_09_78") HideObject(25) HideObject(26) FinishMOB() end elseif phase == PHASE_DEPLOYMENT then if GetTurnNumber( COLOR_GREEN ) == 1 then StartMOB(1) ShowXBallon(51, -1, MBS_CENTER, 300, 350, "sc_Train_09_79") FinishMOB() elseif GetCountryControl( 10 ) == COLOR_GREEN then StartMOB(1) FlyCamera(0.560710, -0.000000, -0.828012, 0.000000, 0.763589, 0.386726, 0.517084, 0.000000,0.320214, -0.922195, 0.216841, 0.000000,288.532623, 352.191803, -1639.366943, 1.000000) ShowXBallon(51, -1, MBS_CENTER, 300, 450, "sc_Train_09_80") ShowXBallon(51, -1, MBS_CENTER, 300, 300, "sc_Train_09_81") ShowXBallon(51, -1, MBS_CENTER, 300, 300, "sc_Train_09_82") FlyCamera(0.050758, 0.000000, -0.998711, 0.000000, 0.940852, 0.335425, 0.047817, 0.000000,0.334992, -0.942067, 0.017026, 0.000000,514.086975, 380.735901, -1452.759521, 1.000000) ShowObject(ARROW, 30, 65280, 100, 50, 8, 42, 11, 41) ShowXBallon(51, -1, MBS_CENTER, 300, 300, "sc_Train_09_83") HideObject(30) FinishMOB() end end end function OnEndPhase( phase ) if phase == PHASE_DEPLOYMENT then if GetCountryControl( 10 ) == COLOR_GREEN then StartMOB(1) ShowXBallon(51, -1, MBS_CENTER, 300, 450, "sc_Train_09_84") ShowXBallon(51, -1, MBS_CENTER, 300, 450, "sc_Train_09_85") bVictory = true FinishMOB() else if GetMoney(8, MONEY_BANK) >= 2 then IncorrectAction("sc_Train_09_86") elseif GetMoney(12, MONEY_BANK) >= 2 then IncorrectAction("sc_Train_09_87") end end elseif phase == PHASE_DISCLOSE then if GetTurnNumber( COLOR_GREEN ) == 0 then if GetCountryControl( 8 ) ~= COLOR_GREEN then IncorrectAction("sc_Train_09_87a") end elseif GetTurnNumber( COLOR_GREEN ) == 2 then if GetCountryControl( 12 ) ~= COLOR_GREEN then IncorrectAction("sc_Train_09_87a") end end elseif phase == PHASE_COMBAT then if GetTurnNumber( COLOR_GREEN ) == 1 then if IsInvaded ( 10 ) == nil then IncorrectAction("sc_Train_09_87a") end end end end function OnEndAITurn() if GetTurnNumber( COLOR_GREEN ) == 1 then StartMOB(1) FlyCamera(-0.926484, 0.000000, -0.376335, 0.000000, 0.304765, 0.586673, -0.750288, 0.000000, 0.220786, -0.809824, -0.543543, 0.000000, 1290.318604, 377.848877, -700.891968, 1.000000) ShowXBallon(51, -1, MBS_CENTER, 470, 420, "sc_Train_09_89") MoveUnit(100, 24, 20) MoveUnit(101, 25, 21) MoveUnit(102, 26, 22) MoveUnit(103, 27, 23) pause(2.0) ShowBallon(51, -1, MBS_CENTER, 24, 24, "sc_Train_09_90") ShowBallon(51, -1, MBS_CENTER, 24, 24, "sc_Train_09_91") FlyCamera(0.320802, -0.000000, -0.947146, 0.000000, 0.869700, 0.396042, 0.294571, 0.000000,0.375110, -0.918232, 0.127051, 0.000000,150.483093, 449.671570, -1614.142700, 1.000000) MoveUnit(103, 27, 21) SetHP(100, 0) SetHP(101, 0) SetHP(102, 0) SetHP(103, 0) RemoveDead() ShowBallon(51, -1, MBS_CENTER, 5, 43, "sc_Train_09_92") ShowBallon(51, -1, MBS_CENTER, 5, 43, "sc_Train_09_93") FinishMOB() elseif GetTurnNumber( COLOR_GREEN ) == 2 then StartMOB(1) FlyCamera(0.967238, 0.000000, 0.253871, 0.000000, -0.203643, 0.597120, 0.775872, 0.000000,-0.151591, -0.802152, 0.577557, 0.000000,438.700348, 304.657043, -1740.929565, 1.000000) ShowXBallon(51, -1, MBS_CENTER, 200, 370, "sc_Train_09_94") FlyCamera(0.967238, 0.000000, 0.253871, 0.000000, -0.203643, 0.597120, 0.775872, 0.000000,-0.151591, -0.802152, 0.577557, 0.000000,574.715881, 304.657043, -1912.549561, 1.000000) ShowXBallon(51, -1, MBS_CENTER, 200, 350, "sc_Train_09_95") FinishMOB() elseif GetTurnNumber( COLOR_GREEN ) == 3 then StartMOB(1) FlyCamera(0.717036, 0.000000, -0.697036, 0.000000, 0.520521, 0.665089, 0.535457, 0.000000,0.463591, -0.746764, 0.476893, 0.000000,532.266174, 356.172638, -1661.270386, 1.000000) ShowObject(ARROW, 22, 16711680, 100, 70, 9, 41, 7, 43) ShowBallon(51, -1, MBS_CENTER, 11, 41, "sc_Train_09_96") ShowBallon(51, -1, MBS_CENTER, 11, 41, "sc_Train_09_97") HideObject(22) FinishMOB() end end function OnEndTurn() if GetTurnNumber( COLOR_GREEN ) == 1 then StartMOB(1) ShowXBallon(51, -1, MBS_CENTER, 300, 300, "sc_Train_09_98") FinishMOB() end if GetTurnNumber( COLOR_GREEN ) == 2 then StartMOB(1) Country(13, ALLIANCE_DISABLED) Country(5, ALLIANCE_DISABLED) Country(1, ALLIANCE_DISABLED) FinishMOB() end -- ταπδ≤°Ωα ∩σ≡σΣΓΦµσφΦ if GetTurnNumber( COLOR_GREEN ) == 0 then StartMOB(1) SetMP(100, 0) SetMP(101, 0) SetMP(102, 0) SetMP(103, 0) FinishMOB() end end function OnCountryCaptured(country, color) if country == 10 then if color == COLOR_GREEN then StartMOB(1) FlyCamera(0.609764, 0.000000, 0.792583, 0.000000, -0.660937, 0.551912, 0.508484, 0.000000,-0.437436, -0.833902, 0.336536, 0.000000,499.018799, 310.757050, -1686.566040, 1.000000) ShowXBallon(51, -1, MBS_CENTER, 300, 300, "sc_Train_09_99") scenario = GetProperties() scenario.vShowMessageBoxes[STDDT_THIS_FORGOTTEN_UNIT] = false scenario.vShowMessageBoxes[STDDT_THIS_FORGOTTEN_UNIT2] = false FinishMOB() else StartMOB(1) FlyCamera(0.609764, 0.000000, 0.792583, 0.000000, -0.660937, 0.551912, 0.508484, 0.000000,-0.437436, -0.833902, 0.336536, 0.000000,499.018799, 310.757050, -1686.566040, 1.000000) ShowXBallon(51, -1, MBS_CENTER, 300, 300, "sc_Train_09_100") FinishMOB() end end end function OnUnitDead(unit) if GetAliveUnitsAmount( COLOR_RED ) == 0 and GetCapitalControl( 10 ) ~= COLOR_GREEN then StartMOB(1) FlyCamera(0.861137, 0.000000, 0.508373, 0.000000, -0.411794, 0.586396, 0.697542, 0.000000,-0.298108, -0.810024, 0.504968, 0.000000,470.429749, 310.757050, -1744.095825, 1.000000) ShowXBallon(51, -1, MBS_CENTER, 300, 300, "sc_Train_09_101") FinishMOB() end end function CheckForVictory() if bVictory then return GAMERESULT_VICTORY end if GetCountryControl( 10 ) == COLOR_RED then return GAMERESULT_DEFEAT end return GAMERESULT_NONE end function aiDefence(country) aiMustNot() end function aiDisclosure(country) if country == 10 and GetCountryControl( 10 ) == COLOR_NEUTRAL then aiMust() else aiMustNot() end end function aiMustBuyOnDisclose(country) aiMustBuy( ARTILLERYA, 6, 46 ) aiMustBuy( ARTILLERYA, 5, 47 ) aiMustBuy( BUNKER, 3, 41 ) aiMustBuy( BUNKER, 2, 42 ) aiMustBuy( BUNKER, 7, 41 ) aiMustBuy( BUNKER, 5, 43 ) end function aiMustBuyOnGuerilla(country) aiMustBuy( BUNKER, 8, 38 ) aiMustBuy( BUNKER, 7, 39 ) aiMustBuy( BUNKER, 6, 40 ) aiMustBuy( BUNKER, 6, 42 ) aiMustBuy( BUNKER, 4, 42 ) aiMustBuy( BUNKER, 3, 43 ) end function InitialSetup() Country(8, ALLIANCE_FNU_SECRET_ALLY) Country(12, ALLIANCE_FNU_SECRET_ALLY) Country(13, ALLIANCE_FNU_SECRET_ALLY) Country(5, ALLIANCE_FNU_SECRET_ALLY) Country(1, ALLIANCE_FNU_SECRET_ALLY) Country(10, ALLIANCE_FL_SECRET_ALLY) Country(11, ALLIANCE_NEUTRAL) Country(15, ALLIANCE_FL_SECRET_ALLY) Country(4, ALLIANCE_FL_SECRET_ALLY) Country(3, ALLIANCE_NEUTRAL) Country(7, ALLIANCE_NEUTRAL) end